package com.start_eternity.oasissafewalk.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Route {
    private Integer routeId;            //线路id
    private String routeName;           //线路名称
    private String routeDes;            //线路描述
    private Short routeStatus;          //线路状态 1表示正常 0表示关闭
    private Integer routeCapacity;      //线路容量
    private LocalDate addDate;          //添加日期(有这条线路的日期)
    private String startPoint;          //线路起点
    private String endPoint;            //线路终点
    private LocalTime startTime;        //开始时间
    private LocalTime endTime;          //结束时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;   //添加时间(将这条线路添加到数据库的时间)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;   //更行时间

    private List<RouteStation> routeStationList;

}
